﻿using MiniFox.Infrastructure.Attributes;
using MiniFox.Platform.Applications.Models;
using MiniFox.Resources;
using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations;

namespace Sys.Core.Models.VO
{
    /// <summary>
    /// 菜单项 
    /// </summary>
    [TreeNode("MenuID", "ParentMenuID", "Ordinal", "ApplicationID")]
    public class MenuVo
    {
        /// <summary>
        /// 菜单ID
        /// </summary>
        [JsonProperty("menuId")]
        public string MenuID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [JsonProperty("appId")]
        public string ApplicationID { get; set; }
        /// <summary>
        /// 父级ID
        /// </summary>
        [JsonProperty("parentMenuId")]
        public string ParentMenuID { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [JsonProperty("menuName")]
        public string MenuName { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [JsonProperty("menuPath")]
        public string MenuPath { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [JsonProperty("label")]
        public string Label { get; set; }
        /// <summary>
        /// 菜单图标
        /// </summary>
        [JsonProperty("icon")]
        public string Icon { get; set; }

        [JsonProperty("ordinal")]
        public int Ordinal { get; set; }
        ///// <summary>
        ///// 
        ///// </summary>
        //public IEnumerable<MenuModuleVo> MenuModules { get; set; }
        ///// <summary>
        ///// 
        ///// </summary>
        //public IEnumerable<MenuLinkVo> MenuLinks { get; set; }
    }
}
